package cn.buddha.jerec.server;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * @ClassName JerecServerApplication
 * @Author 友野浩二
 * @Description 启动项目后，在浏览器地址栏输入application.properties中配置的eureka.client.service-url地址,就可以查看eureka注册中心
 * @Version 1.0
 */
@SpringBootApplication
// 开启对EurekaServer的支持，即：作为Eureka服务端
@EnableEurekaServer
// 开启作为Eureka Server的客户端的支持
//@EnableEurekaClient
@Slf4j
public class JerecServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(JerecServerApplication.class, args);
        log.info("<<<<======== Tong Cluster Eureka Server Started ========>>>>");
    }

}
